---@class Battle.AiHasTargetCondition:Battle.AiCondition
---@field New fun():Battle.AiHasTargetCondition
local AiHasTargetCondition = Battle.CreateClass("AiHasTargetCondition",Battle.AiCondition)
Battle.AiHasTargetCondition = AiHasTargetCondition

function AiHasTargetCondition:onInitialize()
    self:SetCondition(self:GetActor():HasTarget(),true,Battle.CompareType.Equals)
end
function AiHasTargetCondition:ToString()
    local s = Battle.AiBehavior.ToString(self)
    return s.." condition:"..tostring(self:IsTrigger())
end